package com.fbt.transfer.app.driver.model.me;

import java.util.Optional;
import lombok.Data;

/**
 * 查询提现的功能权限
 *
 * @author tuocoo
 * @date 2024-11-13
 * @since 1.0.0
 */
@Data
public class WithdrawalFunctionRest {

  /** 余额 */
  private BalanceInfoVo balanceInfo;

  /** 是否是临时用户 */
  private Boolean isTemp;

  /** 该车队是否开通了提现功能 */
  private Boolean teamWithdrawal;

  /** 该用户是否开通了提现功能 */
  private Boolean hasPayout;

  /** 是否需要签约 */
  private Boolean isPayoutSigned;

  private Integer count;

  public Integer getCount() {
    return Optional.ofNullable(count).orElse(3);
  }
}
